measure_max_x

function measure_max_x(locations: list<location>): integer